﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Controls;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.SystemUI;
using ESRI.ArcGIS.Geometry;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Output;
using ESRI.ArcGIS.DataSourcesGDB;
using ESRI.ArcGIS.ADF;

namespace ClassroomAllocationAndManagementFrame
{
    public partial class FormForMapControl : DockContent
    {
        public FormForMapControl()
        {
            InitializeComponent();
        }

        public void OnPanClicked()
        {
            ICommand pCommand = new ControlsMapZoomInFixedCommandClass();
            pCommand.OnCreate(this.axMapControl.Object);
            pCommand.OnClick();
        }

        public void LoadFile(string filePath)
        {
            this.axMapControl.LoadMxFile(filePath);
        }

        public void Destroy()
        {
            this.axMapControl.Dispose();
        }
    }
}
